home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Games Machine 76
/
XENIATGM66.iso
/
Indiana Jones
/
Indiana Jones.exe
/
RESOURCE
/
PREVIEW.GOB
/
cog_gen_onetime_musiccue.cog
< prev
next >
Wrap
Text File
|
1999-11-15
|
1KB
|
60 lines
# Jones 3D Cog Script
#
# gen_onetime_musiccue.cog
#
# duh.
#
# [CMG]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved
# ========================================================================================
symbols
#..................MESSAGES................
message entered
message startup
#..................ACTORS................
thing player local
#..................TRIGGER................
sector triggerSECT
#..................MUSIC CUE................
sound thecue
#..................VARIABLES................
int cue_played=0 local
int vol
end
# ========================================================================================
code
startup:
player=GetLocalPlayerThing();
return;
# ========================================================================================
entered:
if (GetSenderRef() != triggerSECT) return;
if (GetSourceRef() != player) return;
if (cue_played != 0) return;
{
cue_played = 1;
PlaySoundLocal(thecue, vol, 0, 0x0, 0);
}
return;
# ========================================================================================
end